Skip to content

Gate tree-selection bookkeeping test to macOS#245

Merged
zarvox32 merged 1 commit intomainfrom
zarvox/fix-tree-selection-test-gate
Apr 30, 2026
Merged

Gate tree-selection bookkeeping test to macOS#245
zarvox32 merged 1 commit intomainfrom
zarvox/fix-tree-selection-test-gate

Conversation

@zarvox32
Copy link
Copy Markdown
Contributor

Summary

  • Skip test_managed_tree_ctrl_delete_all_items_resets_bookkeeping on non-darwin. It exercises the macOS TreeListCtrl shim's bookkeeping (_item_data reset, persistent compat-root); on Windows/Linux ManagedTreeCtrl is a wx.TreeCtrl whose root becomes invalid after DeleteAllItems and whose stale TreeItemIds are undefined, so the test fails with wxAssertionError: "item.IsOk()" failed.
  • Mirrors the existing sys.platform != "darwin" gate on test_managed_tree_ctrl_rejects_unsupported_tree_event_binders.
  • Follow-up to Improve macOS login tree accessibility #244 (context).

Test plan

  • uv run python -m pytest tests/test_tree_selection.py -v on Windows: 2 passed, 2 skipped, 0 failed.
  • Same command on macOS should run all 4 tests (the gated one will execute the shim path).

🤖 Generated with Claude Code

The macOS TreeListCtrl shim is the only path that maintains the
bookkeeping this test exercises — on Windows/Linux ManagedTreeCtrl is
a wx.TreeCtrl whose root becomes invalid after DeleteAllItems and
whose stale TreeItemIds give undefined results, so the test fails
with a wxAssertionError. Skip it on non-darwin like the existing
event-binder test.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@zarvox32 zarvox32 merged commit f476b1f into main Apr 30, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant